﻿<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeFile="ContentSettings.aspx.cs" Inherits="ContentSettings" %>
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body >
<form runat="server">
    <table width="100%">
        <tr>
            <td width="30%">
                Module
            </td>
            <td width="70%">
                Content
            </td>
        </tr>
        <tr id="trSelectContent" runat="server">
            <td>
                Select Content
            </td>
            <td>
                <asp:DropDownList ID="DDLContent" runat="server" AutoPostBack="True" 
                    onselectedindexchanged="DDLContent_SelectedIndexChanged"></asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                Name
            </td>
            <td>
                <asp:TextBox ID="txtContentName" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfv" ControlToValidate="txtContentName" runat="server"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                Is General Content? <br />(Any page can use it)
            </td>
            <td>
                <asp:CheckBox ID="chkIsGeneral" Checked="false" runat="server" />
            </td>
        </tr>
        <tr><td colspan="2">
        <asp:HyperLink ID="lnkEditContent" NavigateUrl="#" Text="Edit Content" runat="server"></asp:HyperLink>
        <asp:LinkButton ID="btnAddContent" Text="Add Content" Visible="false" 
                runat="server" onclick="btnAddContent_Click"></asp:LinkButton>
        <div id="elm1" style="border:solid 1px silver; height:200px; overflow:auto;" runat="server"></div>
       <%-- <CKEditor:CKEditorControl  ToolbarStartupExpanded="false"  HtmlEncodeOutput="false" ID="elm1" 
        FilebrowserBrowseUrl="FileManager/Default.aspx"  runat="server" 
        ></CKEditor:CKEditorControl>--%>
        <div style="display:none;">
        <asp:TextBox ID="txtContent" runat="server"></asp:TextBox>
        </div>
        </td></tr>
        <tr style="display:none;"><td><asp:Button ID="btnSave" Text="Save" runat="server" 
                onclick="btnSave_Click" /></td></tr>
    </table>
     <div style="position: absolute; background-color: White; font-size: 12px; padding: 3px 8px 3px 8px;
        border: solid 1px black; display: none;" id="menu">
        <a href="#">Edit</a>
    </div>
   </form>
   
    
</body>
</html>
